/*****************************************************************
**                                                              **
**  Copyright (C) 2007 Amlogic,Inc.                             **
**  All rights reserved                                         **
**  CY8C21434 Touch Panel Input                                 **
*****************************************************************/
#include "ioapi.h"

#if (defined AML_ARES)||(defined AML_COPIA)	
#include "Drivers/i2c/hard_i2c.h"
extern hard_i2c_para_t hard_i2c_para ;
#else 
#include "Drivers/i2c/soft_i2c.h"
extern soft_i2c_para_t soft_i2c_para;
#endif


extern int i2c_handle_flag;
extern int I2C_device_fd ;

extern void Init_I2C_parameters(void);

extern void modify_i2c_id(unsigned char id);

extern void modify_i2c_flag(unsigned char flag);

extern void modify_i2c_delay(unsigned delay);

extern int i2c_read_eeprom(unsigned char *buff, unsigned bytes, unsigned addr );

extern int i2c_write_eeprom(unsigned char *buff, unsigned bytes, unsigned addr );